package leung.java.rmi;

import java.rmi.Naming;

public class RmiClient {

	/**
	 *@Description:
	 *@Notice: 
	 *@Author:David Leung
	 *@param args
	 */
	public static void main(String[] args) {
		try {
			Service service=(Service)Naming.lookup("rmi://localhost:9999/say");
			String result=service.sayHello("leung");
			System.out.println("get result:"+result);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
